<ul class="scrollspy-nav">
  <li *ngFor="let heading of headings">
    <a routerLink="." [fragment]="heading.id">{{ heading.innerHTML }}</a>
  </li>
</ul>